<?php

namespace app\index\model;

use think\Model;

class PhotoLike extends Model
{
    protected $name = 'car_photo_like';
    protected $autoWriteTimestamp = true;
    protected $dateFormat = 'Y/m/d H:i:s';
    protected $createTime = 'create_at';
    protected $updateTime = 'update_at';

    public function info() {
        return $this->hasOne(PhotoList::class, 'id', 'photo_id');
    }
}